//
//  ExampleSearchView.h
//  NekaPrice
//
//  Created by yu on 2018/6/22.
//  Copyright © 2018年 ma c. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CategoryModel.h"
#import "CategoryListModel.h"
typedef void(^SelectedCategoryBlock)(NSString *url);
typedef void(^SearchBlock)(NSString *keywords);
@interface ExampleSearchView : UIView <UITableViewDelegate, UITableViewDataSource>
@property (nonatomic, strong)UITableView *firstTableView;
@property (nonatomic, strong)UITableView *secondTableView;

@property (nonatomic, strong)NSArray *firstList;
@property (nonatomic, strong)NSArray *secondList;

@property (nonatomic, strong)UIButton *backBtn;
@property (nonatomic, strong)UITextField *searchText;

@property (nonatomic, copy)SelectedCategoryBlock selectedBlock;
@property (nonatomic, copy)SearchBlock searchBlock;

- (void)hideAllViews;


/*
 inCenter: YES 搜索框居中, 没有菜单按钮
 NO: 搜索框居左,菜单按钮在右
 */
- (instancetype)initAndSearchTextInCenter:(BOOL)inCenter;


@end
